namespace ContractorTimesheet.DataModel
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("Holiday")]
    public partial class Holiday
    {
        public Holiday() : this("", "", "", "") { }

        public Holiday(string year, string month, string day, string description)
        {
            Year = year;
            Month = month;
            Day = day;
            Description = description;
        }

        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        [Required]
        [StringLength(4)]
        public string Year { get; set; }

        [Required]
        [StringLength(2)]
        public string Month { get; set; }

        [Required]
        [StringLength(2)]
        public string Day { get; set; }

        [Required]
        [StringLength(200)]
        public string Description { get; set; }
    }
}
